import { createRouter, createWebHistory } from 'vue-router';
import BasicSetting from '../views/BasicSetting.vue';
import MyShare from '../views/MyShare.vue';
import MySubscription from '../views/MySubscription.vue';
import RiskFile from '../views/RiskFile.vue';
import UploadRecord from '../views/UploadRecord.vue';
import DownloadRecord from '../views/DownloadRecord.vue';
import SubscriptionApproval from '../views/SubscriptionApproval.vue';
import TaskList from '../views/TaskList.vue';
import Overview from '../views/Overview.vue';
import ContentCenter from '../views/ContentCenter.vue';
import AppCenter from '../views/AppCenter.vue';

const routes = [
  { path: '/', redirect: '/task-list' },
  { path: '/task-list', component: TaskList },
  { path: '/basic-setting', component: BasicSetting },
  { path: '/my-share', component: MyShare },
  { path: '/my-subscription', component: MySubscription },
  { path: '/risk-file', component: RiskFile },
  { path: '/upload-record', component: UploadRecord },
  { path: '/download-record', component: DownloadRecord },
  { path: '/subscription-approval', component: SubscriptionApproval },
  { path: '/overview', component: Overview },
  { path: '/content-center', component: ContentCenter },
  { path: '/app-center', component: AppCenter },
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router;